package com.softhis.rekrutacja.client.presenter.gxt;

import com.extjs.gxt.ui.client.data.BaseModelData;
import com.softhis.rekrutacja.shared.dto.UserDTO;

public class MyUserListModel extends BaseModelData {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6366208219041678176L;

	public MyUserListModel(UserDTO user) {
		setData(user);
	}

	public void updateData(UserDTO user) {
		setData(user);
	}

	private void setData(UserDTO user) {
		set("userId", user.getUserId());
		set("password", user.getPassword());
		set("login", user.getLogin());
		set("name", user.getName());
		set("lastName", user.getLastName());
		set("birthDate", user.getBirthDate());
	}

}
